how to create and use config file